package com.ymatou.iapi.productmanager.service;

import java.util.Map;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;
import com.ymttest.utils.compare.CallAPI;

public class QuerySellerProductStatisticsCall extends YmatouAutoTestCall implements CallAPI{
	private static String opurl ="/api/SellerProduct/QuerySellerProductStatistics";
	
	public QuerySellerProductStatisticsCall(String systemUrl) {
		super(systemUrl,opurl,"POST","JSON");
	}
	
	
	public QuerySellerProductStatisticsCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	
	public JSONObject call(int userId){
		return callAndGetReturnData(MapUtil.hashMap("SellerId",userId));
	}
	
	
	public static void main(String[] args) {
		new QuerySellerProductStatisticsCall().callAndGetReturnData();
	}
	@Override
	public JSONObject callAndReturn(Map<String, Object> paramMap) {
		return callAndGetReturnData(paramMap);
	}
	@Override
	public String getApiName() {
		return "QuerySellerProductStatisticsCall";
	}
}
